package com.green.dao.manage.impl;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.green.common.page.Pagination;
import com.green.dao.impl.BaseDaoImpl;
import com.green.dao.manage.SyncErpDataDao;
import com.green.model.manage.Org;
import com.green.model.manage.Person;
import com.green.model.manage.Position;

@Component("syncErpDataDao")
public class SyncErpDataDaoImpl extends BaseDaoImpl implements SyncErpDataDao{

	@Override
	public Pagination<Org> getErpOrgs(Pagination<Org> pag,Map<String, Object> params) {
		return selectList("com.green.dao.manage.SyncErpDao.getErpOrgs",params,pag);
	}

	@Override
	public Pagination<Position> getErpPositions(Pagination<Position> pag,Map<String, Object> params) {
		return selectList("com.green.dao.manage.SyncErpDao.getErpPositions",params,pag);
	}

	@Override
	public Pagination<Person> getErpPersons(Pagination<Person> pag,Map<String, Object> params) {
		return selectList("com.green.dao.manage.SyncErpDao.getErpPersons",params,pag);
	}

}
